<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<div id="div_nav" style="height:30px;line-height:30px;">
	<table style="width:100%;">
  			<tr>
  				<td style="text-align:center;">
				<table id="nav_tbl">
					<tr>
						<td>
							<c:if test="${page.previousPage}"><a onclick="_goto(${page.pageIndex-1});">上一页 </a></c:if>
							<c:if test="${not page.previousPage}">上一页</c:if>
						</td>
				 		<c:forEach var="nav" items="${page.navigatePageNumbers}" varStatus="vs">
				 		<td><a onclick="_goto(${page.navigatePageNumbers[vs.index]});" <c:if test="${page.pageIndex == page.navigatePageNumbers[vs.index]}">style="border:1px solid #ccc; background:#187cba; color:#fff;"</c:if>>${page.navigatePageNumbers[vs.index]}</a></td>
				 		</c:forEach>
						<td>
					 		<c:if test="${not page.nextPage}">下一页</c:if>
					 		<c:if test="${page.nextPage}"><a onclick="_goto(${page.pageIndex+1});">下一页 </a></c:if>
						</td>
						<td><input id="txt_page_index" type="text" value="${page.pageIndex}" size="5" maxlength="5" onblur="_goto(eval('this.value>${page.totalPage}?${page.totalPage}:this.value<1?1:this.value'));" onkeyup="this.value=this.value.replace(/[^0-9]/g,'');"/></td>
						<td style="width:200px;text-align:left;">&nbsp;第${page.pageIndex}页,共${page.totalPage}页 ,共${page.totalRows}条 <input type="hidden" value="${page.pageIndex}" id="_pg_curr_index"/></td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>

